package net.wang.totakecodenotes.wechatofficaccounts.domain.response;

import lombok.Data;

/**
 *
 */
@Data
public class ResponseBuilder {
    int code ;
    Object data;
    String msg ;

    public ResponseBuilder(int code, Object data, String msg) {
        this.code = code;
        this.data = data;
        this.msg = msg;
    }

    public static ResponseBuilder build(Object data) {
        return new ResponseBuilder(200, data, "OK");
    }
}
